Skip to main content

Stub

Overview

to create stub for calculated time, each set of Haynes Pro Job Descriptions is assigned a Family Id, grouping related descriptions. Additionally, each description is assigned an Overlap Weight to facilitate the calculation of overlap time.

Overlap time is calculated using the following formula:

Stubbed Calculated Time

Below are stubbed calculated time as so find then in this spreadsheet

DescriptionRepair IdFamily IdSuggested Labour TimeOverlap WeightOverlap Time
Family 1
Renew the timing belt kit and the coolant pump1B02002400WV01180170
Renew the timing belt kit1B02002500WV011200.847
Renew the timing belt1B02003100WV01800.431
Renew the timing belt tensioner pulley1B02006000WV01600.224
Total Weight2.6
Family 2
Renew the camshaft1B02014000WV02280183
Renew the front camshaft1B02014150WV021400.542
Renew the rear camshaft1B02014600WV021400.542
Renew both camshafts1B02016400WV02280183
Renew the camshaft gearwheel1B02019375WV02900.327
Renew the camshaft front oil seal1B02024025WV02600.118
Total Weight3.4
Family 3
Renew the clutch master cylinder1H03995000WV038301203
Renew the clutch slave cylinder1H04995000WV033600.488
Renew the clutch slave cylinder hose1H05509500WV032100.252
Renew the clutch assembly (manual transmission)1H07000000WV036100.5149
Renew the clutch pressure plate (manual transmission)1H07061100WV038191200
Renew the clutch plate1H08051100WV038501208
Total Weight4.1
Family 4
Renew the brake fluid1M09056020WV04110174
Renew the brake fluid reservoir1M10040000WV04800.554
Total Weight1.5
Family 5
Renew the front brake pads1M01510000WV0580110
Renew the front left brake disc1M01819550WV05600.38
Renew the front right brake disc1M01819650WV05600.38
Renew both front brake discs1M01822000WV0590111
Renew the front left brake caliper carrier1M02001020WV05800.6510
Renew the front right brake caliper carrier1M02001040WV05800.6510
Renew the front brake caliper carriers1M02001040NWV05800.6510
Renew the front left brake caliper1M02010050WV05800.6510
Renew the front right brake caliper1M02040050WV05800.6510
Renew both front brake calipers1M02200050WV051200.7515
Renew the front left brake line1M04010100WV05600.658
Renew the front left brake hose1M05015000WV05500.36
Renew the front right brake hose1M05025000WV05500.36
Renew both front brake hoses1M05055000WV05900.611
Total Weight8.45
Family 6
Renew the rear brake pads1M01534000WV0670111
Renew both rear brake discs1M01830000WV0690114
Renew all the brake discs1M01835000WV06180127
Renew both rear brake drums1M01942000WV061200.618
Renew the rear left brake caliper1M02100050WV06700.311
Renew the rear right brake caliper1M02130050WV06700.311
Renew both rear brake calipers1M02300050WV061000.615
Renew all the brake calipers1M02310020WV062290.434
Renew the brake caliper bleed screw1M02360000WV06100.32
Renew the rear left brake hose1M05035000WV06500.48
Renew the rear right brake hose1M05042000WV06500.48
Renew both rear brake hoses1M05065000WV06900.514
Total Weight6.8
Family 7
Renew all the valve oil seals1B01390000WV079001334
Renew all the valve guides1B01382000WV07600.5
Renew all the valve springs1B01330011WV079000.2334
Renew the EGR valve1G02036901WV070.5
Renew the valve spring1B01330000WV070.51
Total Weight2.7

Example

Consider the job descriptions "Renew the clutch master cylinder" and "Renew the clutch slave cylinder" added to a job sheet:

  • Suggested Time for "Renew the clutch master cylinder": 830
  • Suggested Time for "Renew the clutch slave cylinder": 360
  • Overlap Weights:
    • "Renew the clutch master cylinder": 1
    • "Renew the clutch slave cylinder": 0.4

Using the formula:

                    830                 830
Overlap Time = ---------------- = ---------- = 593
(1 + 0.4) 1.4

360 360
Overlap Time = ---------------- = ---------- = 258
(1 + 0.4) 1.4

Explanation

  • Family Id: A unique identifier assigned to a group of related job descriptions.
  • Overlap Weight: A numerical value assigned to each job description to indicate its contribution to the total overlap within a family.

Overlap occurs when job descriptions from the same family are found on the job sheet. The overlap weights and family Ids are added to our stubs to mimic the behavior of Haynes Pro.

While we do not have the exact calculation method used by Haynes Pro, this approach allows us to approximate the overlap time for related tasks

We have selected a few Haynes Pro descriptions and grouped them with Family Ids to implement this calculation in our system.

check out all the chosen descriptions to stub in this spreadsheet

Special Cases (handled in Family 7)

Family 7 deals with special cases to mimic certain scenarios for testing purposes. The specific behaviors for this family are as follows:

  1. Calculated Time is Returned Even if Suggested Time is not Present:
    • The overlap time is returned even if the suggested time is not present.
      Repair Id used to mimic this is 1B01382000WV0
  2. Calculated Time is empty When Both Overlap and Suggested Time are not Present:
    • If neither the overlap time nor the suggested time is present for job descriptions in Family 7, the calculated time will be empty. Repair Id used to mimic this is 1G02036901WV0
  3. Calculated Time is 1 When Suggested Time is not Found:
    • If the suggested time is not found for job description, the calculated time defaults to 1. Repair Id used to mimic this is 1B01330000WV0

Implementation

To implement this system:

  1. Assign Family Ids: Group related job descriptions and assign a unique Family Id to each group.
  2. Assign Overlap Weights: Assign an overlap weight to each job description within a family.
  3. Calculate Overlap Time: Use the provided formula to calculate the overlap time for job descriptions on the job sheet
  4. Handle Special Cases: Implement the special behaviors outlined for Family 7 in the calculation logic
Status: Accepted
Category: Protected
Authored By: Hadley on Oct 8, 2024